home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / MAZE__ / CMAZEDOC.H < prev    next >
Text File  |  1991-12-28  |  759b  |  38 lines

  1. /****
  2.  * CMazeDoc.h
  3.  *
  4.  *    Document class for a typical application.
  5.  *
  6.  ****/
  7.  
  8. #define    _H_CMazeDoc            /* Include this file only once */
  9. #include <CDocument.h>
  10. #include <CApplication.h>
  11.  
  12.  
  13. class CDataFile;
  14.  
  15. struct CMazeDoc : CDocument {
  16.  
  17. public:
  18.     Handle        theData ;
  19.     int         Size;
  20.                                     /** Construction/Destruction **/
  21.                                     
  22.     
  23.     void        IMazeDoc(CApplication *aSupervisor, Boolean printable);
  24.     void        Dispose(void);
  25.  
  26.     void        DoCommand(long theCommand);
  27.  
  28.     void        UpdateMenus(void);  
  29.  
  30.     void        NewFile(void);
  31.     void        OpenFile(SFReply *macSFReply);
  32.     void        BuildWindow(Handle theData, int age);
  33.     
  34.                                     /** Filing **/
  35.     Boolean        DoSave(void);
  36.     Boolean        DoSaveAs(SFReply *macSFReply);
  37.     void        DoRevert(void);
  38. };